package com.pci.netty.business.impl;


import com.pci.netty.business.IHandler;
import com.pci.netty.dto.RequestPayload;
import io.netty.channel.ChannelHandlerContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component("4001")
public class RestartHandler implements IHandler {
    @Override
    public void handler(RequestPayload payload, ChannelHandlerContext ctx) {
        RequestPayload.Header header = RequestPayload.analysis(payload.getHead());
        log.info("播控重启,hand:{},data:{}" + header, payload.getData());
    }
}
